package com.swu.pad.comment.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "fbcomment")
/**
 * 这是组间评论实体
 * @author yuge
 *
 */
public class FbComment {
	public static String TYPE_COMMENT = "comment";// 评论
	public static String TYPE_REPLY = "replay";// 回复
	public static String TYPE_FEEDBACK = "feedback";// 反馈评分
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Integer id;

	@Column(name = "comment_id")
	private String commentId;

	@Column(name = "type")
	private String type;

	@Column(name = "feedback_type")
	private String feedbackType;

	@Column(name = "feedback_score")
	private int feedbackScore;

	@Column(name = "timestamp")
	private String timestamp;

	@Column(name = "commenter_id")
	private String commenterId;

	@Column(name = "author_id")
	private String authorId;
    
	
	@Column(name = "comment_text")
	private String commentText;


   
	@Column(name = "pad_id")
	private String padId;
	
	@Column(name = "assignment_id")
	private String assignmentId;
	
	@Column(name = "activity_id")
	private String activityId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCommentId() {
		return commentId;
	}

	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getFeedbackType() {
		return feedbackType;
	}

	public void setFeedbackType(String feedbackType) {
		this.feedbackType = feedbackType;
	}

	public int getFeedbackScore() {
		return feedbackScore;
	}

	public void setFeedbackScore(int feedbackScore) {
		this.feedbackScore = feedbackScore;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getCommenterId() {
		return commenterId;
	}

	public void setCommenterId(String commenterId) {
		this.commenterId = commenterId;
	}

	public String getAuthorId() {
		return authorId;
	}

	public void setAuthorId(String authorId) {
		this.authorId = authorId;
	}

	public String getCommentText() {
		return commentText;
	}

	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}

	public String getPadId() {
		return padId;
	}

	public void setPadId(String padId) {
		this.padId = padId;
	}

	public String getAssignmentId() {
		return assignmentId;
	}

	public void setAssignmentId(String assignmentId) {
		this.assignmentId = assignmentId;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	@Override
	public String toString() {
		return "FbComment [id=" + id + ", commentId=" + commentId + ", type=" + type + ", feedbackType=" + feedbackType
				+ ", feedbackScore=" + feedbackScore + ", timestamp=" + timestamp + ", commenterId=" + commenterId
				+ ", authorId=" + authorId + ", commentText=" + commentText + ", padId=" + padId + ", assignmentId="
				+ assignmentId + ", activityId=" + activityId + "]";
	}
	
	
	

	

}
